package com.geovis.emergency.spd.entity.basic.pojo.dto;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import org.hibernate.validator.constraints.Length;

import javax.validation.constraints.NotNull;

/**
 * <p>
 *  基础管理模块-组织架构保存DTO
 * </p>
 *
 * @author Lonsho
 * @version 1.0
 * @date 2022/7/11
 */
@Data
@ApiModel(value = "BasicDutyOrgSaveDTO", description = "基础管理模块-组织架构保存DTO")
public class BasicDutyOrgSaveDTO {

    @ApiModelProperty(value = "架构名称",required = true)
    @Length(max = 64, message = "架构名称最长不能超过{64}个字符")
    private String orgName;

    @ApiModelProperty(value = "架构全称")
    @Length(max = 128, message = "架构全称最长不能超过{128}个字符")
    private String fullName;

    @ApiModelProperty(value = "上级架构id")
    private String parentId;

    @ApiModelProperty(value = "排序",required = true)
    @NotNull(message = "排序不能为空")
    private Integer idx;

    @ApiModelProperty(value = "备注")
    private String remark;

    @ApiModelProperty(value = "角色id集合（多天以,分隔）")
    private String roleIds;

    @ApiModelProperty(value = "职责")
    @Length(max = 2000, message = "职责最长不能超过{2000}个字符")
    private String duty;
}
